Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.debounce = function(t, e) {
    var r;
    return function() {
        var n = this, o = arguments;
        clearTimeout(r), r = setTimeout(function() {
            t.apply(n, o);
        }, e);
    };
}, exports.excitationAdShow = function() {
    try {
        var t = wx.getStorageSync("systemInfo"), e = t || wx.getSystemInfoSync(), n = (e.system, 
        e.platform), o = e.appName, a = e.version;
        if (t || wx.setStorage({
            key: "systemInfo",
            data: e,
            success: function(t) {},
            fail: function(t) {}
        }), "Douyin" !== o) return {
            appName: o,
            isAdShow: !1
        };
        if ("iOS" === n || "ios" === n || "devtools" === n) return console.log("是否展示广告", r(a, "10.7")), 
        {
            appName: o,
            isAdShow: r(a, "10.7")
        };
        if ("android" === n) return console.log("是否展示广告", r(a, "10.3")), {
            appName: o,
            isAdShow: r(a, "10.3")
        };
    } catch (t) {
        console.log("获取系统信息失败");
    }
}, exports.objectToQueryString = function(t) {
    return Object.keys(t).map(function(e) {
        return "".concat(e, "=").concat(t[e]);
    }).join("&");
}, exports.getRandomNumberByRange = function(t, e) {
    return Math.floor(Math.random() * (e - t) + t);
}, exports.formatHeaderAgent = function(e) {
    var r = Date.now(), n = function() {
        for (var t = [], e = 0; e < 36; e++) t[e] = "0123456789abcdef".substr(Math.floor(16 * Math.random()), 1);
        return t[14] = "4", t[19] = "0123456789abcdef".substr(3 & t[19] | 8, 1), t[8] = t[13] = t[18] = t[23] = "-", 
        t.join("");
    }();
    n = n.replace(/-/g, ""), console.log(n);
    var o = {
        appId: "42928896",
        timestamp: r,
        nonce: n,
        appVersion: "1.2.9"
    };
    bodyStr = JSON.stringify(e), bodyStr = bodyStr.replace(/\n/g, ""), bodyStr = bodyStr.replace(/\s+/g, "").trim(), 
    o.ckstr = (0, t.md5)(bodyStr);
    var a = function(t) {
        var e = "";
        for (var r in t) e += r + "=" + t[r] + "&";
        return e.substring(0, e.length - 1);
    }(o) + "&7c3770997d33480e8d5cd4a73f7f7fe0", i = {
        appId: "42928896",
        sign: (0, t.md5)(a.toLowerCase()),
        timestamp: r,
        nonce: n,
        appVersion: "1.2.9"
    }, c = JSON.stringify(i);
    return c = (c = c.replace(/\n/g, "")).replace(/\s+/g, "").trim();
}, exports.generateSignature = function(r) {
    var n, o = e.WXAPPID, a = e.thirdPartyAppKey, i = e.WXAPPSCREPT, c = Math.random().toString(36).substr(2, 16), s = e.thirdPartyPrivateKey, p = Math.ceil(Date.now() / 1e3);
    if (!r) return;
    var u = "appKey=".concat(a, "&nonce=").concat(c, "&timestamp=").concat(p, "&url=").concat(r, "&").concat(s);
    return n = (0, t.md5)(u), {
        nonce: c,
        timestamp: p,
        appKey: a,
        appId: o,
        appScrept: i,
        signature: n
    };
};

var t = require("9891B2E68A52ABCFFEF7DAE1DA97FE64.js"), e = require("A1901C218A52ABCFC7F674269787FE64.js");

function r(t, e) {
    for (var r = t.toString().split("."), n = e.toString().split("."), o = Math.min(r.length, n.length), a = 0, i = 0, c = !1; a < o; ) {
        if (0 != (i = parseInt(r[a]) - parseInt(n[a]))) {
            if (i > 0) {
                c = !0;
                break;
            }
            c = !1;
            break;
        }
        if (1 === a) {
            c = !0;
            break;
        }
        a++;
    }
    return c;
}